package com.huibur.devicecheck.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huibur.devicecheck.model.po.DevicePO;
import com.huibur.devicecheck.model.query.DeviceQuery;
import com.huibur.devicecheck.model.vo.DeviceVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/*******************************************************
* Title: DeviceMapper.java
* Description:
* @author baiqingshuo
* @date 2021/9/24
* @version 1.0
*******************************************************/
@Repository
@Mapper
public interface DeviceMapper extends BaseMapper<DevicePO>  {

    /**
     * 设备列表(查询并分页)
     * @param page
     * @param deviceQuery
     * @return
     */
    IPage<DeviceVO> selectDeviceList(@Param("page") Page<DevicePO> page, @Param("deviceQuery") DeviceQuery deviceQuery);

    DeviceVO selectDeviceByLabel(String label);
}
